package model

import (
	"time"
)

const (
	RoleCodeAdmin    = "ADMIN"    // 管理员
	RoleCodeDeliever = "DELIEVER" // 送水员
)

const (
	RoleIdAdmin    = 1 // 管理员
	RoleIdDeliever = 2 // 送水员
)

type RoleModel struct {
	Id         int64     `json:"id" xorm:"pk autoincr comment('auto_increment') BIGINT(20)"`
	RoleName   string    `json:"role_name" xorm:"not null default '' comment('角色名称') VARCHAR(30)"`
	CreateTime time.Time `json:"create_time" xorm:"not null default '1980-01-01 00:00:00' comment('创建时间') TIMESTAMP"`
}

func (*RoleModel) TableName() string {
	return "role"
}
